﻿using System;
using SimpleOrmCFPC.Core.RequestsComputer.Dialects;

namespace SimpleOrmCFPC.Core.Model
{
    public class Column
    {
        public Column(string name, DbType type, int maxLength, bool primaryKey, bool notNull, bool indexed,
                          bool autoIncrement)
        {
            Name = name;
            Type = type;
            MaxLength = maxLength;
            PrimaryKey = primaryKey;
            NotNull = notNull;
            Indexed = indexed;
            AutoIncrement = autoIncrement;
        }

        public String Name { get; private set; }
        public DbType Type { get; private set; }
        public int MaxLength { get; private set; }
        public bool PrimaryKey { get; private set; }
        public bool NotNull { get; private set; }
        public bool Indexed { get; private set; }
        public bool AutoIncrement { get; private set; }
    }
}